7a2ce857bc687eebf76abf1a1ce16a9af3ce3772,portal-impl/src/com/liferay/portlet/layoutsadmin/util/LayoutsTreeUtil.java,LayoutsTreeUtil,_toJSONObject,#HttpServletRequest#number#LayoutTreeNodes#,496

Before Change


		for (LayoutTreeNode layoutTreeNode : layoutTreeNodes) {
			JSONObject jsonObject = JSONFactoryUtil.createJSONObject();

			String childrenJSON = _toJSONObject(
				request, groupId,
				layoutTreeNode.getChildLayoutTreeNodes()).toString();

			jsonObject.put(
				"children", JSONFactoryUtil.createJSONObject(childrenJSON));

After Change


		for (LayoutTreeNode layoutTreeNode : layoutTreeNodes) {
			JSONObject jsonObject = JSONFactoryUtil.createJSONObject();

			JSONObject childrenJSONObject = _toJSONObject(
				request, groupId, layoutTreeNode.getChildLayoutTreeNodes());

			jsonObject.put("children", childrenJSONObject);